home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / fruit.swf / scripts / C_ReelsSimbolsCLASS.as < prev    next >
Text File  |  2006-01-17  |  867b  |  39 lines

  1. _global.C_ReelsSimbolsCLASS = function()
  2. {
  3.    this._parent.registerSimbols(this);
  4. };
  5. C_ReelsSimbolsCLASS.prototype = new MovieClip();
  6. C_ReelsSimbolsCLASS.prototype.setPos = function(p)
  7. {
  8.    p += this.line;
  9.    if(p > this._totalframes)
  10.    {
  11.       p -= this._totalframes;
  12.    }
  13.    if(p < 1)
  14.    {
  15.       p = this._totalframes + p;
  16.    }
  17.    this.gotoAndStop(p);
  18. };
  19. C_ReelsSimbolsCLASS.prototype.nextPos = function()
  20. {
  21.    var p = this._currentframe + 1;
  22.    if(p > this._totalframes)
  23.    {
  24.       p -= this._totalframes;
  25.    }
  26.    this.gotoAndStop(p);
  27. };
  28. C_ReelsSimbolsCLASS.prototype.prevPos = function()
  29. {
  30.    var p = this._currentframe - 1;
  31.    if(p < 1)
  32.    {
  33.       p = this._totalframes + p;
  34.    }
  35.    this.gotoAndStop(p);
  36. };
  37. Object.registerClass("C_ReelsSimbolsCLASS",C_ReelsSimbolsCLASS);
  38. ASSetPropFlags(_global,"C_ReelsSimbolsCLASS",131);
  39.